/*
 * An XML document type.
 * Localname: task-node
 * Namespace: urn:jbpm.org:jpdl-3.2
 * Java type: x2.orgJpdl3.jbpm.TaskNodeDocument
 *
 * Automatically generated - do not modify.
 */
package x2.orgJpdl3.jbpm.impl;
/**
 * A document containing one task-node(@urn:jbpm.org:jpdl-3.2) element.
 *
 * This is a complex type.
 */
public class TaskNodeDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements x2.orgJpdl3.jbpm.TaskNodeDocument
{
    private static final long serialVersionUID = 1L;
    
    public TaskNodeDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName TASKNODE$0 = 
        new javax.xml.namespace.QName("urn:jbpm.org:jpdl-3.2", "task-node");
    
    
    /**
     * Gets the "task-node" element
     */
    public x2.orgJpdl3.jbpm.TaskNodeDocument.TaskNode getTaskNode()
    {
        synchronized (monitor())
        {
            check_orphaned();
            x2.orgJpdl3.jbpm.TaskNodeDocument.TaskNode target = null;
            target = (x2.orgJpdl3.jbpm.TaskNodeDocument.TaskNode)get_store().find_element_user(TASKNODE$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "task-node" element
     */
    public void setTaskNode(x2.orgJpdl3.jbpm.TaskNodeDocument.TaskNode taskNode)
    {
        synchronized (monitor())
        {
            check_orphaned();
            x2.orgJpdl3.jbpm.TaskNodeDocument.TaskNode target = null;
            target = (x2.orgJpdl3.jbpm.TaskNodeDocument.TaskNode)get_store().find_element_user(TASKNODE$0, 0);
            if (target == null)
            {
                target = (x2.orgJpdl3.jbpm.TaskNodeDocument.TaskNode)get_store().add_element_user(TASKNODE$0);
            }
            target.set(taskNode);
        }
    }
    
    /**
     * Appends and returns a new empty "task-node" element
     */
    public x2.orgJpdl3.jbpm.TaskNodeDocument.TaskNode addNewTaskNode()
    {
        synchronized (monitor())
        {
            check_orphaned();
            x2.orgJpdl3.jbpm.TaskNodeDocument.TaskNode target = null;
            target = (x2.orgJpdl3.jbpm.TaskNodeDocument.TaskNode)get_store().add_element_user(TASKNODE$0);
            return target;
        }
    }
    /**
     * An XML task-node(@urn:jbpm.org:jpdl-3.2).
     *
     * This is a complex type.
     */
    public static class TaskNodeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements x2.orgJpdl3.jbpm.TaskNodeDocument.TaskNode
    {
        private static final long serialVersionUID = 1L;
        
        public TaskNodeImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName TASK$0 = 
            new javax.xml.namespace.QName("urn:jbpm.org:jpdl-3.2", "task");
        private static final javax.xml.namespace.QName DESCRIPTION$2 = 
            new javax.xml.namespace.QName("urn:jbpm.org:jpdl-3.2", "description");
        private static final javax.xml.namespace.QName EVENT$4 = 
            new javax.xml.namespace.QName("urn:jbpm.org:jpdl-3.2", "event");
        private static final javax.xml.namespace.QName EXCEPTIONHANDLER$6 = 
            new javax.xml.namespace.QName("urn:jbpm.org:jpdl-3.2", "exception-handler");
        private static final javax.xml.namespace.QName TIMER$8 = 
            new javax.xml.namespace.QName("urn:jbpm.org:jpdl-3.2", "timer");
        private static final javax.xml.namespace.QName TRANSITION$10 = 
            new javax.xml.namespace.QName("urn:jbpm.org:jpdl-3.2", "transition");
        private static final javax.xml.namespace.QName NAME$12 = 
            new javax.xml.namespace.QName("", "name");
        private static final javax.xml.namespace.QName CREATETASKS$14 = 
            new javax.xml.namespace.QName("", "create-tasks");
        private static final javax.xml.namespace.QName ENDTASKS$16 = 
            new javax.xml.namespace.QName("", "end-tasks");
        private static final javax.xml.namespace.QName SIGNAL$18 = 
            new javax.xml.namespace.QName("", "signal");
        private static final javax.xml.namespace.QName ASYNC$20 = 
            new javax.xml.namespace.QName("", "async");
        
        
        /**
         * Gets a List of "task" elements
         */
        public java.util.List<x2.orgJpdl3.jbpm.TaskDocument.Task> getTaskList()
        {
            final class TaskList extends java.util.AbstractList<x2.orgJpdl3.jbpm.TaskDocument.Task>
            {
                public x2.orgJpdl3.jbpm.TaskDocument.Task get(int i)
                    { return TaskNodeImpl.this.getTaskArray(i); }
                
                public x2.orgJpdl3.jbpm.TaskDocument.Task set(int i, x2.orgJpdl3.jbpm.TaskDocument.Task o)
                {
                    x2.orgJpdl3.jbpm.TaskDocument.Task old = TaskNodeImpl.this.getTaskArray(i);
                    TaskNodeImpl.this.setTaskArray(i, o);
                    return old;
                }
                
                public void add(int i, x2.orgJpdl3.jbpm.TaskDocument.Task o)
                    { TaskNodeImpl.this.insertNewTask(i).set(o); }
                
                public x2.orgJpdl3.jbpm.TaskDocument.Task remove(int i)
                {
                    x2.orgJpdl3.jbpm.TaskDocument.Task old = TaskNodeImpl.this.getTaskArray(i);
                    TaskNodeImpl.this.removeTask(i);
                    return old;
                }
                
                public int size()
                    { return TaskNodeImpl.this.sizeOfTaskArray(); }
                
            }
            
            synchronized (monitor())
            {
                check_orphaned();
                return new TaskList();
            }
        }
        
        /**
         * Gets array of all "task" elements
         * @deprecated
         */
        public x2.orgJpdl3.jbpm.TaskDocument.Task[] getTaskArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                java.util.List<x2.orgJpdl3.jbpm.TaskDocument.Task> targetList = new java.util.ArrayList<x2.orgJpdl3.jbpm.TaskDocument.Task>();
                get_store().find_all_element_users(TASK$0, targetList);
                x2.orgJpdl3.jbpm.TaskDocument.Task[] result = new x2.orgJpdl3.jbpm.TaskDocument.Task[targetList.size()];
                targetList.toArray(result);
                return result;
            }
        }
        
        /**
         * Gets ith "task" element
         */
        public x2.orgJpdl3.jbpm.TaskDocument.Task getTaskArray(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                x2.orgJpdl3.jbpm.TaskDocument.Task target = null;
                target = (x2.orgJpdl3.jbpm.TaskDocument.Task)get_store().find_element_user(TASK$0, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                return target;
            }
        }
        
        /**
         * Returns number of "task" element
         */
        public int sizeOfTaskArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(TASK$0);
            }
        }
        
        /**
         * Sets array of all "task" element
         */
        public void setTaskArray(x2.orgJpdl3.jbpm.TaskDocument.Task[] taskArray)
        {
            synchronized (monitor())
            {
                check_orphaned();
                arraySetterHelper(taskArray, TASK$0);
            }
        }
        
        /**
         * Sets ith "task" element
         */
        public void setTaskArray(int i, x2.orgJpdl3.jbpm.TaskDocument.Task task)
        {
            synchronized (monitor())
            {
                check_orphaned();
                x2.orgJpdl3.jbpm.TaskDocument.Task target = null;
                target = (x2.orgJpdl3.jbpm.TaskDocument.Task)get_store().find_element_user(TASK$0, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                target.set(task);
            }
        }
        
        /**
         * Inserts and returns a new empty value (as xml) as the ith "task" element
         */
        public x2.orgJpdl3.jbpm.TaskDocument.Task insertNewTask(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                x2.orgJpdl3.jbpm.TaskDocument.Task target = null;
                target = (x2.orgJpdl3.jbpm.TaskDocument.Task)get_store().insert_element_user(TASK$0, i);
                return target;
            }
        }
        
        /**
         * Appends and returns a new empty value (as xml) as the last "task" element
         */
        public x2.orgJpdl3.jbpm.TaskDocument.Task addNewTask()
        {
            synchronized (monitor())
            {
                check_orphaned();
                x2.orgJpdl3.jbpm.TaskDocument.Task target = null;
                target = (x2.orgJpdl3.jbpm.TaskDocument.Task)get_store().add_element_user(TASK$0);
                return target;
            }
        }
        
        /**
         * Removes the ith "task" element
         */
        public void removeTask(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(TASK$0, i);
            }
        }
        
        /**
         * Gets a List of "description" elements
         */
        public java.util.List<java.lang.String> getDescriptionList()
        {
            final class DescriptionList extends java.util.AbstractList<java.lang.String>
            {
                public java.lang.String get(int i)
                    { return TaskNodeImpl.this.getDescriptionArray(i); }
                
                public java.lang.String set(int i, java.lang.String o)
                {
                    java.lang.String old = TaskNodeImpl.this.getDescriptionArray(i);
                    TaskNodeImpl.this.setDescriptionArray(i, o);
                    return old;
                }
                
                public void add(int i, java.lang.String o)
                    { TaskNodeImpl.this.insertDescription(i, o); }
                
                public java.lang.String remove(int i)
                {
                    java.lang.String old = TaskNodeImpl.this.getDescriptionArray(i);
                    TaskNodeImpl.this.removeDescription(i);
                    return old;
                }
                
                public int size()
                    { return TaskNodeImpl.this.sizeOfDescriptionArray(); }
                
            }
            
            synchronized (monitor())
            {
                check_orphaned();
                return new DescriptionList();
            }
        }
        
        /**
         * Gets array of all "description" elements
         * @deprecated
         */
        public java.lang.String[] getDescriptionArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                java.util.List<org.apache.xmlbeans.XmlString> targetList = new java.util.ArrayList<org.apache.xmlbeans.XmlString>();
                get_store().find_all_element_users(DESCRIPTION$2, targetList);
                java.lang.String[] result = new java.lang.String[targetList.size()];
                for (int i = 0, len = targetList.size() ; i < len ; i++)
                    result[i] = ((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getStringValue();
                return result;
            }
        }
        
        /**
         * Gets ith "description" element
         */
        public java.lang.String getDescriptionArray(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DESCRIPTION$2, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) a List of "description" elements
         */
        public java.util.List<org.apache.xmlbeans.XmlString> xgetDescriptionList()
        {
            final class DescriptionList extends java.util.AbstractList<org.apache.xmlbeans.XmlString>
            {
                public org.apache.xmlbeans.XmlString get(int i)
                    { return TaskNodeImpl.this.xgetDescriptionArray(i); }
                
                public org.apache.xmlbeans.XmlString set(int i, org.apache.xmlbeans.XmlString o)
                {
                    org.apache.xmlbeans.XmlString old = TaskNodeImpl.this.xgetDescriptionArray(i);
                    TaskNodeImpl.this.xsetDescriptionArray(i, o);
                    return old;
                }
                
                public void add(int i, org.apache.xmlbeans.XmlString o)
                    { TaskNodeImpl.this.insertNewDescription(i).set(o); }
                
                public org.apache.xmlbeans.XmlString remove(int i)
                {
                    org.apache.xmlbeans.XmlString old = TaskNodeImpl.this.xgetDescriptionArray(i);
                    TaskNodeImpl.this.removeDescription(i);
                    return old;
                }
                
                public int size()
                    { return TaskNodeImpl.this.sizeOfDescriptionArray(); }
                
            }
            
            synchronized (monitor())
            {
                check_orphaned();
                return new DescriptionList();
            }
        }
        
        /**
         * Gets array of all "description" elements
         * @deprecated
         */
        public org.apache.xmlbeans.XmlString[] xgetDescriptionArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                java.util.List<org.apache.xmlbeans.XmlString> targetList = new java.util.ArrayList<org.apache.xmlbeans.XmlString>();
                get_store().find_all_element_users(DESCRIPTION$2, targetList);
                org.apache.xmlbeans.XmlString[] result = new org.apache.xmlbeans.XmlString[targetList.size()];
                targetList.toArray(result);
                return result;
            }
        }
        
        /**
         * Gets (as xml) ith "description" element
         */
        public org.apache.xmlbeans.XmlString xgetDescriptionArray(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(DESCRIPTION$2, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                return (org.apache.xmlbeans.XmlString)target;
            }
        }
        
        /**
         * Returns number of "description" element
         */
        public int sizeOfDescriptionArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(DESCRIPTION$2);
            }
        }
        
        /**
         * Sets array of all "description" element
         */
        public void setDescriptionArray(java.lang.String[] descriptionArray)
        {
            synchronized (monitor())
            {
                check_orphaned();
                arraySetterHelper(descriptionArray, DESCRIPTION$2);
            }
        }
        
        /**
         * Sets ith "description" element
         */
        public void setDescriptionArray(int i, java.lang.String description)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DESCRIPTION$2, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                target.setStringValue(description);
            }
        }
        
        /**
         * Sets (as xml) array of all "description" element
         */
        public void xsetDescriptionArray(org.apache.xmlbeans.XmlString[]descriptionArray)
        {
            synchronized (monitor())
            {
                check_orphaned();
                arraySetterHelper(descriptionArray, DESCRIPTION$2);
            }
        }
        
        /**
         * Sets (as xml) ith "description" element
         */
        public void xsetDescriptionArray(int i, org.apache.xmlbeans.XmlString description)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(DESCRIPTION$2, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                target.set(description);
            }
        }
        
        /**
         * Inserts the value as the ith "description" element
         */
        public void insertDescription(int i, java.lang.String description)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = 
                    (org.apache.xmlbeans.SimpleValue)get_store().insert_element_user(DESCRIPTION$2, i);
                target.setStringValue(description);
            }
        }
        
        /**
         * Appends the value as the last "description" element
         */
        public void addDescription(java.lang.String description)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DESCRIPTION$2);
                target.setStringValue(description);
            }
        }
        
        /**
         * Inserts and returns a new empty value (as xml) as the ith "description" element
         */
        public org.apache.xmlbeans.XmlString insertNewDescription(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().insert_element_user(DESCRIPTION$2, i);
                return target;
            }
        }
        
        /**
         * Appends and returns a new empty value (as xml) as the last "description" element
         */
        public org.apache.xmlbeans.XmlString addNewDescription()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(DESCRIPTION$2);
                return target;
            }
        }
        
        /**
         * Removes the ith "description" element
         */
        public void removeDescription(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(DESCRIPTION$2, i);
            }
        }
        
        /**
         * Gets a List of "event" elements
         */
        public java.util.List<x2.orgJpdl3.jbpm.EventDocument.Event> getEventList()
        {
            final class EventList extends java.util.AbstractList<x2.orgJpdl3.jbpm.EventDocument.Event>
            {
                public x2.orgJpdl3.jbpm.EventDocument.Event get(int i)
                    { return TaskNodeImpl.this.getEventArray(i); }
                
                public x2.orgJpdl3.jbpm.EventDocument.Event set(int i, x2.orgJpdl3.jbpm.EventDocument.Event o)
                {
                    x2.orgJpdl3.jbpm.EventDocument.Event old = TaskNodeImpl.this.getEventArray(i);
                    TaskNodeImpl.this.setEventArray(i, o);
                    return old;
                }
                
                public void add(int i, x2.orgJpdl3.jbpm.EventDocument.Event o)
                    { TaskNodeImpl.this.insertNewEvent(i).set(o); }
                
                public x2.orgJpdl3.jbpm.EventDocument.Event remove(int i)
                {
                    x2.orgJpdl3.jbpm.EventDocument.Event old = TaskNodeImpl.this.getEventArray(i);
                    TaskNodeImpl.this.removeEvent(i);
                    return old;
                }
                
                public int size()
                    { return TaskNodeImpl.this.sizeOfEventArray(); }
                
            }
            
            synchronized (monitor())
            {
                check_orphaned();
                return new EventList();
            }
        }
        
        /**
         * Gets array of all "event" elements
         * @deprecated
         */
        public x2.orgJpdl3.jbpm.EventDocument.Event[] getEventArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                java.util.List<x2.orgJpdl3.jbpm.EventDocument.Event> targetList = new java.util.ArrayList<x2.orgJpdl3.jbpm.EventDocument.Event>();
                get_store().find_all_element_users(EVENT$4, targetList);
                x2.orgJpdl3.jbpm.EventDocument.Event[] result = new x2.orgJpdl3.jbpm.EventDocument.Event[targetList.size()];
                targetList.toArray(result);
                return result;
            }
        }
        
        /**
         * Gets ith "event" element
         */
        public x2.orgJpdl3.jbpm.EventDocument.Event getEventArray(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                x2.orgJpdl3.jbpm.EventDocument.Event target = null;
                target = (x2.orgJpdl3.jbpm.EventDocument.Event)get_store().find_element_user(EVENT$4, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                return target;
            }
        }
        
        /**
         * Returns number of "event" element
         */
        public int sizeOfEventArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(EVENT$4);
            }
        }
        
        /**
         * Sets array of all "event" element
         */
        public void setEventArray(x2.orgJpdl3.jbpm.EventDocument.Event[] eventArray)
        {
            synchronized (monitor())
            {
                check_orphaned();
                arraySetterHelper(eventArray, EVENT$4);
            }
        }
        
        /**
         * Sets ith "event" element
         */
        public void setEventArray(int i, x2.orgJpdl3.jbpm.EventDocument.Event event)
        {
            synchronized (monitor())
            {
                check_orphaned();
                x2.orgJpdl3.jbpm.EventDocument.Event target = null;
                target = (x2.orgJpdl3.jbpm.EventDocument.Event)get_store().find_element_user(EVENT$4, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                target.set(event);
            }
        }
        
        /**
         * Inserts and returns a new empty value (as xml) as the ith "event" element
         */
        public x2.orgJpdl3.jbpm.EventDocument.Event insertNewEvent(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                x2.orgJpdl3.jbpm.EventDocument.Event target = null;
                target = (x2.orgJpdl3.jbpm.EventDocument.Event)get_store().insert_element_user(EVENT$4, i);
                return target;
            }
        }
        
        /**
         * Appends and returns a new empty value (as xml) as the last "event" element
         */
        public x2.orgJpdl3.jbpm.EventDocument.Event addNewEvent()
        {
            synchronized (monitor())
            {
                check_orphaned();
                x2.orgJpdl3.jbpm.EventDocument.Event target = null;
                target = (x2.orgJpdl3.jbpm.EventDocument.Event)get_store().add_element_user(EVENT$4);
                return target;
            }
        }
        
        /**
         * Removes the ith "event" element
         */
        public void removeEvent(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(EVENT$4, i);
            }
        }
        
        /**
         * Gets a List of "exception-handler" elements
         */
        public java.util.List<x2.orgJpdl3.jbpm.ExceptionHandlerDocument.ExceptionHandler> getExceptionHandlerList()
        {
            final class ExceptionHandlerList extends java.util.AbstractList<x2.orgJpdl3.jbpm.ExceptionHandlerDocument.ExceptionHandler>
            {
                public x2.orgJpdl3.jbpm.ExceptionHandlerDocument.ExceptionHandler get(int i)
                    { return TaskNodeImpl.this.getExceptionHandlerArray(i); }
                
                public x2.orgJpdl3.jbpm.ExceptionHandlerDocument.ExceptionHandler set(int i, x2.orgJpdl3.jbpm.ExceptionHandlerDocument.ExceptionHandler o)
                {
                    x2.orgJpdl3.jbpm.ExceptionHandlerDocument.ExceptionHandler old = TaskNodeImpl.this.getExceptionHandlerArray(i);
                    TaskNodeImpl.this.setExceptionHandlerArray(i, o);
                    return old;
                }
                
                public void add(int i, x2.orgJpdl3.jbpm.ExceptionHandlerDocument.ExceptionHandler o)
                    { TaskNodeImpl.this.insertNewExceptionHandler(i).set(o); }
                
                public x2.orgJpdl3.jbpm.ExceptionHandlerDocument.ExceptionHandler remove(int i)
                {
                    x2.orgJpdl3.jbpm.ExceptionHandlerDocument.ExceptionHandler old = TaskNodeImpl.this.getExceptionHandlerArray(i);
                    TaskNodeImpl.this.removeExceptionHandler(i);
                    return old;
                }
                
                public int size()
                    { return TaskNodeImpl.this.sizeOfExceptionHandlerArray(); }
                
            }
            
            synchronized (monitor())
            {
                check_orphaned();
                return new ExceptionHandlerList();
            }
        }
        
        /**
         * Gets array of all "exception-handler" elements
         * @deprecated
         */
        public x2.orgJpdl3.jbpm.ExceptionHandlerDocument.ExceptionHandler[] getExceptionHandlerArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                java.util.List<x2.orgJpdl3.jbpm.ExceptionHandlerDocument.ExceptionHandler> targetList = new java.util.ArrayList<x2.orgJpdl3.jbpm.ExceptionHandlerDocument.ExceptionHandler>();
                get_store().find_all_element_users(EXCEPTIONHANDLER$6, targetList);
                x2.orgJpdl3.jbpm.ExceptionHandlerDocument.ExceptionHandler[] result = new x2.orgJpdl3.jbpm.ExceptionHandlerDocument.ExceptionHandler[targetList.size()];
                targetList.toArray(result);
                return result;
            }
        }
        
        /**
         * Gets ith "exception-handler" element
         */
        public x2.orgJpdl3.jbpm.ExceptionHandlerDocument.ExceptionHandler getExceptionHandlerArray(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                x2.orgJpdl3.jbpm.ExceptionHandlerDocument.ExceptionHandler target = null;
                target = (x2.orgJpdl3.jbpm.ExceptionHandlerDocument.ExceptionHandler)get_store().find_element_user(EXCEPTIONHANDLER$6, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                return target;
            }
        }
        
        /**
         * Returns number of "exception-handler" element
         */
        public int sizeOfExceptionHandlerArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(EXCEPTIONHANDLER$6);
            }
        }
        
        /**
         * Sets array of all "exception-handler" element
         */
        public void setExceptionHandlerArray(x2.orgJpdl3.jbpm.ExceptionHandlerDocument.ExceptionHandler[] exceptionHandlerArray)
        {
            synchronized (monitor())
            {
                check_orphaned();
                arraySetterHelper(exceptionHandlerArray, EXCEPTIONHANDLER$6);
            }
        }
        
        /**
         * Sets ith "exception-handler" element
         */
        public void setExceptionHandlerArray(int i, x2.orgJpdl3.jbpm.ExceptionHandlerDocument.ExceptionHandler exceptionHandler)
        {
            synchronized (monitor())
            {
                check_orphaned();
                x2.orgJpdl3.jbpm.ExceptionHandlerDocument.ExceptionHandler target = null;
                target = (x2.orgJpdl3.jbpm.ExceptionHandlerDocument.ExceptionHandler)get_store().find_element_user(EXCEPTIONHANDLER$6, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                target.set(exceptionHandler);
            }
        }
        
        /**
         * Inserts and returns a new empty value (as xml) as the ith "exception-handler" element
         */
        public x2.orgJpdl3.jbpm.ExceptionHandlerDocument.ExceptionHandler insertNewExceptionHandler(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                x2.orgJpdl3.jbpm.ExceptionHandlerDocument.ExceptionHandler target = null;
                target = (x2.orgJpdl3.jbpm.ExceptionHandlerDocument.ExceptionHandler)get_store().insert_element_user(EXCEPTIONHANDLER$6, i);
                return target;
            }
        }
        
        /**
         * Appends and returns a new empty value (as xml) as the last "exception-handler" element
         */
        public x2.orgJpdl3.jbpm.ExceptionHandlerDocument.ExceptionHandler addNewExceptionHandler()
        {
            synchronized (monitor())
            {
                check_orphaned();
                x2.orgJpdl3.jbpm.ExceptionHandlerDocument.ExceptionHandler target = null;
                target = (x2.orgJpdl3.jbpm.ExceptionHandlerDocument.ExceptionHandler)get_store().add_element_user(EXCEPTIONHANDLER$6);
                return target;
            }
        }
        
        /**
         * Removes the ith "exception-handler" element
         */
        public void removeExceptionHandler(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(EXCEPTIONHANDLER$6, i);
            }
        }
        
        /**
         * Gets a List of "timer" elements
         */
        public java.util.List<x2.orgJpdl3.jbpm.TimerDocument.Timer> getTimerList()
        {
            final class TimerList extends java.util.AbstractList<x2.orgJpdl3.jbpm.TimerDocument.Timer>
            {
                public x2.orgJpdl3.jbpm.TimerDocument.Timer get(int i)
                    { return TaskNodeImpl.this.getTimerArray(i); }
                
                public x2.orgJpdl3.jbpm.TimerDocument.Timer set(int i, x2.orgJpdl3.jbpm.TimerDocument.Timer o)
                {
                    x2.orgJpdl3.jbpm.TimerDocument.Timer old = TaskNodeImpl.this.getTimerArray(i);
                    TaskNodeImpl.this.setTimerArray(i, o);
                    return old;
                }
                
                public void add(int i, x2.orgJpdl3.jbpm.TimerDocument.Timer o)
                    { TaskNodeImpl.this.insertNewTimer(i).set(o); }
                
                public x2.orgJpdl3.jbpm.TimerDocument.Timer remove(int i)
                {
                    x2.orgJpdl3.jbpm.TimerDocument.Timer old = TaskNodeImpl.this.getTimerArray(i);
                    TaskNodeImpl.this.removeTimer(i);
                    return old;
                }
                
                public int size()
                    { return TaskNodeImpl.this.sizeOfTimerArray(); }
                
            }
            
            synchronized (monitor())
            {
                check_orphaned();
                return new TimerList();
            }
        }
        
        /**
         * Gets array of all "timer" elements
         * @deprecated
         */
        public x2.orgJpdl3.jbpm.TimerDocument.Timer[] getTimerArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                java.util.List<x2.orgJpdl3.jbpm.TimerDocument.Timer> targetList = new java.util.ArrayList<x2.orgJpdl3.jbpm.TimerDocument.Timer>();
                get_store().find_all_element_users(TIMER$8, targetList);
                x2.orgJpdl3.jbpm.TimerDocument.Timer[] result = new x2.orgJpdl3.jbpm.TimerDocument.Timer[targetList.size()];
                targetList.toArray(result);
                return result;
            }
        }
        
        /**
         * Gets ith "timer" element
         */
        public x2.orgJpdl3.jbpm.TimerDocument.Timer getTimerArray(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                x2.orgJpdl3.jbpm.TimerDocument.Timer target = null;
                target = (x2.orgJpdl3.jbpm.TimerDocument.Timer)get_store().find_element_user(TIMER$8, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                return target;
            }
        }
        
        /**
         * Returns number of "timer" element
         */
        public int sizeOfTimerArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(TIMER$8);
            }
        }
        
        /**
         * Sets array of all "timer" element
         */
        public void setTimerArray(x2.orgJpdl3.jbpm.TimerDocument.Timer[] timerArray)
        {
            synchronized (monitor())
            {
                check_orphaned();
                arraySetterHelper(timerArray, TIMER$8);
            }
        }
        
        /**
         * Sets ith "timer" element
         */
        public void setTimerArray(int i, x2.orgJpdl3.jbpm.TimerDocument.Timer timer)
        {
            synchronized (monitor())
            {
                check_orphaned();
                x2.orgJpdl3.jbpm.TimerDocument.Timer target = null;
                target = (x2.orgJpdl3.jbpm.TimerDocument.Timer)get_store().find_element_user(TIMER$8, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                target.set(timer);
            }
        }
        
        /**
         * Inserts and returns a new empty value (as xml) as the ith "timer" element
         */
        public x2.orgJpdl3.jbpm.TimerDocument.Timer insertNewTimer(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                x2.orgJpdl3.jbpm.TimerDocument.Timer target = null;
                target = (x2.orgJpdl3.jbpm.TimerDocument.Timer)get_store().insert_element_user(TIMER$8, i);
                return target;
            }
        }
        
        /**
         * Appends and returns a new empty value (as xml) as the last "timer" element
         */
        public x2.orgJpdl3.jbpm.TimerDocument.Timer addNewTimer()
        {
            synchronized (monitor())
            {
                check_orphaned();
                x2.orgJpdl3.jbpm.TimerDocument.Timer target = null;
                target = (x2.orgJpdl3.jbpm.TimerDocument.Timer)get_store().add_element_user(TIMER$8);
                return target;
            }
        }
        
        /**
         * Removes the ith "timer" element
         */
        public void removeTimer(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(TIMER$8, i);
            }
        }
        
        /**
         * Gets a List of "transition" elements
         */
        public java.util.List<x2.orgJpdl3.jbpm.TransitionDocument.Transition> getTransitionList()
        {
            final class TransitionList extends java.util.AbstractList<x2.orgJpdl3.jbpm.TransitionDocument.Transition>
            {
                public x2.orgJpdl3.jbpm.TransitionDocument.Transition get(int i)
                    { return TaskNodeImpl.this.getTransitionArray(i); }
                
                public x2.orgJpdl3.jbpm.TransitionDocument.Transition set(int i, x2.orgJpdl3.jbpm.TransitionDocument.Transition o)
                {
                    x2.orgJpdl3.jbpm.TransitionDocument.Transition old = TaskNodeImpl.this.getTransitionArray(i);
                    TaskNodeImpl.this.setTransitionArray(i, o);
                    return old;
                }
                
                public void add(int i, x2.orgJpdl3.jbpm.TransitionDocument.Transition o)
                    { TaskNodeImpl.this.insertNewTransition(i).set(o); }
                
                public x2.orgJpdl3.jbpm.TransitionDocument.Transition remove(int i)
                {
                    x2.orgJpdl3.jbpm.TransitionDocument.Transition old = TaskNodeImpl.this.getTransitionArray(i);
                    TaskNodeImpl.this.removeTransition(i);
                    return old;
                }
                
                public int size()
                    { return TaskNodeImpl.this.sizeOfTransitionArray(); }
                
            }
            
            synchronized (monitor())
            {
                check_orphaned();
                return new TransitionList();
            }
        }
        
        /**
         * Gets array of all "transition" elements
         * @deprecated
         */
        public x2.orgJpdl3.jbpm.TransitionDocument.Transition[] getTransitionArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                java.util.List<x2.orgJpdl3.jbpm.TransitionDocument.Transition> targetList = new java.util.ArrayList<x2.orgJpdl3.jbpm.TransitionDocument.Transition>();
                get_store().find_all_element_users(TRANSITION$10, targetList);
                x2.orgJpdl3.jbpm.TransitionDocument.Transition[] result = new x2.orgJpdl3.jbpm.TransitionDocument.Transition[targetList.size()];
                targetList.toArray(result);
                return result;
            }
        }
        
        /**
         * Gets ith "transition" element
         */
        public x2.orgJpdl3.jbpm.TransitionDocument.Transition getTransitionArray(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                x2.orgJpdl3.jbpm.TransitionDocument.Transition target = null;
                target = (x2.orgJpdl3.jbpm.TransitionDocument.Transition)get_store().find_element_user(TRANSITION$10, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                return target;
            }
        }
        
        /**
         * Returns number of "transition" element
         */
        public int sizeOfTransitionArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(TRANSITION$10);
            }
        }
        
        /**
         * Sets array of all "transition" element
         */
        public void setTransitionArray(x2.orgJpdl3.jbpm.TransitionDocument.Transition[] transitionArray)
        {
            synchronized (monitor())
            {
                check_orphaned();
                arraySetterHelper(transitionArray, TRANSITION$10);
            }
        }
        
        /**
         * Sets ith "transition" element
         */
        public void setTransitionArray(int i, x2.orgJpdl3.jbpm.TransitionDocument.Transition transition)
        {
            synchronized (monitor())
            {
                check_orphaned();
                x2.orgJpdl3.jbpm.TransitionDocument.Transition target = null;
                target = (x2.orgJpdl3.jbpm.TransitionDocument.Transition)get_store().find_element_user(TRANSITION$10, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                target.set(transition);
            }
        }
        
        /**
         * Inserts and returns a new empty value (as xml) as the ith "transition" element
         */
        public x2.orgJpdl3.jbpm.TransitionDocument.Transition insertNewTransition(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                x2.orgJpdl3.jbpm.TransitionDocument.Transition target = null;
                target = (x2.orgJpdl3.jbpm.TransitionDocument.Transition)get_store().insert_element_user(TRANSITION$10, i);
                return target;
            }
        }
        
        /**
         * Appends and returns a new empty value (as xml) as the last "transition" element
         */
        public x2.orgJpdl3.jbpm.TransitionDocument.Transition addNewTransition()
        {
            synchronized (monitor())
            {
                check_orphaned();
                x2.orgJpdl3.jbpm.TransitionDocument.Transition target = null;
                target = (x2.orgJpdl3.jbpm.TransitionDocument.Transition)get_store().add_element_user(TRANSITION$10);
                return target;
            }
        }
        
        /**
         * Removes the ith "transition" element
         */
        public void removeTransition(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(TRANSITION$10, i);
            }
        }
        
        /**
         * Gets the "name" attribute
         */
        public java.lang.String getName()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$12);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "name" attribute
         */
        public org.apache.xmlbeans.XmlString xgetName()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(NAME$12);
                return target;
            }
        }
        
        /**
         * Sets the "name" attribute
         */
        public void setName(java.lang.String name)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$12);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$12);
                }
                target.setStringValue(name);
            }
        }
        
        /**
         * Sets (as xml) the "name" attribute
         */
        public void xsetName(org.apache.xmlbeans.XmlString name)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(NAME$12);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(NAME$12);
                }
                target.set(name);
            }
        }
        
        /**
         * Gets the "create-tasks" attribute
         */
        public x2.orgJpdl3.jbpm.BooleanType.Enum getCreateTasks()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(CREATETASKS$14);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(CREATETASKS$14);
                }
                if (target == null)
                {
                    return null;
                }
                return (x2.orgJpdl3.jbpm.BooleanType.Enum)target.getEnumValue();
            }
        }
        
        /**
         * Gets (as xml) the "create-tasks" attribute
         */
        public x2.orgJpdl3.jbpm.BooleanType xgetCreateTasks()
        {
            synchronized (monitor())
            {
                check_orphaned();
                x2.orgJpdl3.jbpm.BooleanType target = null;
                target = (x2.orgJpdl3.jbpm.BooleanType)get_store().find_attribute_user(CREATETASKS$14);
                if (target == null)
                {
                    target = (x2.orgJpdl3.jbpm.BooleanType)get_default_attribute_value(CREATETASKS$14);
                }
                return target;
            }
        }
        
        /**
         * True if has "create-tasks" attribute
         */
        public boolean isSetCreateTasks()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().find_attribute_user(CREATETASKS$14) != null;
            }
        }
        
        /**
         * Sets the "create-tasks" attribute
         */
        public void setCreateTasks(x2.orgJpdl3.jbpm.BooleanType.Enum createTasks)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(CREATETASKS$14);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(CREATETASKS$14);
                }
                target.setEnumValue(createTasks);
            }
        }
        
        /**
         * Sets (as xml) the "create-tasks" attribute
         */
        public void xsetCreateTasks(x2.orgJpdl3.jbpm.BooleanType createTasks)
        {
            synchronized (monitor())
            {
                check_orphaned();
                x2.orgJpdl3.jbpm.BooleanType target = null;
                target = (x2.orgJpdl3.jbpm.BooleanType)get_store().find_attribute_user(CREATETASKS$14);
                if (target == null)
                {
                    target = (x2.orgJpdl3.jbpm.BooleanType)get_store().add_attribute_user(CREATETASKS$14);
                }
                target.set(createTasks);
            }
        }
        
        /**
         * Unsets the "create-tasks" attribute
         */
        public void unsetCreateTasks()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_attribute(CREATETASKS$14);
            }
        }
        
        /**
         * Gets the "end-tasks" attribute
         */
        public x2.orgJpdl3.jbpm.BooleanType.Enum getEndTasks()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ENDTASKS$16);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(ENDTASKS$16);
                }
                if (target == null)
                {
                    return null;
                }
                return (x2.orgJpdl3.jbpm.BooleanType.Enum)target.getEnumValue();
            }
        }
        
        /**
         * Gets (as xml) the "end-tasks" attribute
         */
        public x2.orgJpdl3.jbpm.BooleanType xgetEndTasks()
        {
            synchronized (monitor())
            {
                check_orphaned();
                x2.orgJpdl3.jbpm.BooleanType target = null;
                target = (x2.orgJpdl3.jbpm.BooleanType)get_store().find_attribute_user(ENDTASKS$16);
                if (target == null)
                {
                    target = (x2.orgJpdl3.jbpm.BooleanType)get_default_attribute_value(ENDTASKS$16);
                }
                return target;
            }
        }
        
        /**
         * True if has "end-tasks" attribute
         */
        public boolean isSetEndTasks()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().find_attribute_user(ENDTASKS$16) != null;
            }
        }
        
        /**
         * Sets the "end-tasks" attribute
         */
        public void setEndTasks(x2.orgJpdl3.jbpm.BooleanType.Enum endTasks)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ENDTASKS$16);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ENDTASKS$16);
                }
                target.setEnumValue(endTasks);
            }
        }
        
        /**
         * Sets (as xml) the "end-tasks" attribute
         */
        public void xsetEndTasks(x2.orgJpdl3.jbpm.BooleanType endTasks)
        {
            synchronized (monitor())
            {
                check_orphaned();
                x2.orgJpdl3.jbpm.BooleanType target = null;
                target = (x2.orgJpdl3.jbpm.BooleanType)get_store().find_attribute_user(ENDTASKS$16);
                if (target == null)
                {
                    target = (x2.orgJpdl3.jbpm.BooleanType)get_store().add_attribute_user(ENDTASKS$16);
                }
                target.set(endTasks);
            }
        }
        
        /**
         * Unsets the "end-tasks" attribute
         */
        public void unsetEndTasks()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_attribute(ENDTASKS$16);
            }
        }
        
        /**
         * Gets the "signal" attribute
         */
        public x2.orgJpdl3.jbpm.TaskNodeDocument.TaskNode.Signal.Enum getSignal()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SIGNAL$18);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(SIGNAL$18);
                }
                if (target == null)
                {
                    return null;
                }
                return (x2.orgJpdl3.jbpm.TaskNodeDocument.TaskNode.Signal.Enum)target.getEnumValue();
            }
        }
        
        /**
         * Gets (as xml) the "signal" attribute
         */
        public x2.orgJpdl3.jbpm.TaskNodeDocument.TaskNode.Signal xgetSignal()
        {
            synchronized (monitor())
            {
                check_orphaned();
                x2.orgJpdl3.jbpm.TaskNodeDocument.TaskNode.Signal target = null;
                target = (x2.orgJpdl3.jbpm.TaskNodeDocument.TaskNode.Signal)get_store().find_attribute_user(SIGNAL$18);
                if (target == null)
                {
                    target = (x2.orgJpdl3.jbpm.TaskNodeDocument.TaskNode.Signal)get_default_attribute_value(SIGNAL$18);
                }
                return target;
            }
        }
        
        /**
         * True if has "signal" attribute
         */
        public boolean isSetSignal()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().find_attribute_user(SIGNAL$18) != null;
            }
        }
        
        /**
         * Sets the "signal" attribute
         */
        public void setSignal(x2.orgJpdl3.jbpm.TaskNodeDocument.TaskNode.Signal.Enum signal)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SIGNAL$18);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(SIGNAL$18);
                }
                target.setEnumValue(signal);
            }
        }
        
        /**
         * Sets (as xml) the "signal" attribute
         */
        public void xsetSignal(x2.orgJpdl3.jbpm.TaskNodeDocument.TaskNode.Signal signal)
        {
            synchronized (monitor())
            {
                check_orphaned();
                x2.orgJpdl3.jbpm.TaskNodeDocument.TaskNode.Signal target = null;
                target = (x2.orgJpdl3.jbpm.TaskNodeDocument.TaskNode.Signal)get_store().find_attribute_user(SIGNAL$18);
                if (target == null)
                {
                    target = (x2.orgJpdl3.jbpm.TaskNodeDocument.TaskNode.Signal)get_store().add_attribute_user(SIGNAL$18);
                }
                target.set(signal);
            }
        }
        
        /**
         * Unsets the "signal" attribute
         */
        public void unsetSignal()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_attribute(SIGNAL$18);
            }
        }
        
        /**
         * Gets the "async" attribute
         */
        public java.lang.String getAsync()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ASYNC$20);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(ASYNC$20);
                }
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "async" attribute
         */
        public org.apache.xmlbeans.XmlString xgetAsync()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(ASYNC$20);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_default_attribute_value(ASYNC$20);
                }
                return target;
            }
        }
        
        /**
         * True if has "async" attribute
         */
        public boolean isSetAsync()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().find_attribute_user(ASYNC$20) != null;
            }
        }
        
        /**
         * Sets the "async" attribute
         */
        public void setAsync(java.lang.String async)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ASYNC$20);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ASYNC$20);
                }
                target.setStringValue(async);
            }
        }
        
        /**
         * Sets (as xml) the "async" attribute
         */
        public void xsetAsync(org.apache.xmlbeans.XmlString async)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(ASYNC$20);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(ASYNC$20);
                }
                target.set(async);
            }
        }
        
        /**
         * Unsets the "async" attribute
         */
        public void unsetAsync()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_attribute(ASYNC$20);
            }
        }
        /**
         * An XML signal(@).
         *
         * This is an atomic type that is a restriction of x2.orgJpdl3.jbpm.TaskNodeDocument$TaskNode$Signal.
         */
        public static class SignalImpl extends org.apache.xmlbeans.impl.values.JavaStringEnumerationHolderEx implements x2.orgJpdl3.jbpm.TaskNodeDocument.TaskNode.Signal
        {
            private static final long serialVersionUID = 1L;
            
            public SignalImpl(org.apache.xmlbeans.SchemaType sType)
            {
                super(sType, false);
            }
            
            protected SignalImpl(org.apache.xmlbeans.SchemaType sType, boolean b)
            {
                super(sType, b);
            }
        }
    }
}
